/**
 * Copyright (c) 2011-2012
 * OmniCore CodeGuide
 */
package de.tum.in.oose.bumpers.cars.instruments;

import javax.swing.JPanel;

import de.tum.in.oose.bumpers.cars.UserCar;

/**
 * Abstract Class for an Instrument UI.
 */
public abstract class Instrument extends JPanel {
	
	private static final long serialVersionUID = 1L;
	private UserCar theCar;
	
	/**
	 * @return the theCar
	 */
	protected UserCar getTheCar() {
		return theCar;
	}

	/**
	 * @param theCar the theCar to set
	 */
	protected void setTheCar(UserCar theCar) {
		this.theCar = theCar;
	}

    /**
     * @param theDrivenCar -
     */
	public Instrument(UserCar theDrivenCar){
		this.theCar = theDrivenCar;
	}
	
    /**
     * updating instruments.
     */
	public abstract void updateInstrument();
}

